import request from '@/utils/request'
export function list(params) {
    return request({
        url: '/admin/sysUser/list',
        method: 'get',
        params: params
    })
}
export function save(data) {
    return request({
        url: '/admin/sysUser/save',
        method: 'post',
        data: data
    })
}

export function del(ids) {
    return request({
        url: '/admin/sysUser/del/' + ids,
        method: 'post'
    })
}

export function find(id) {
    return request({
        url: '/admin/sysUser/find/' + id,
        method: 'get'
    })
}

export function checkUserExists(params) {
    return request({
        url: '/admin/sysUser/checkUserExists',
        method: 'get',
        params: params
    })
}
export function update(data) {
    return request({
        url: '/admin/sysUser/update',
        method: 'post',
        data: data
    })
}

export function resetPwd(params) {
    return request({
        url: '/admin/sysUser/resetPwd',
        method: 'post',
        params:params
    })
}

export function updateScopes(params,officeList) {
    return request({
        url: '/admin/sysUser/updateScopes',
        method: 'post',
        data: officeList,
        params: params
    })
}
